package com.yn.xgame.message;

import com.yn.xgame.IFunc3;

/**
 * 带三个参数调用消息
 * Created by wangboo on 2017/7/11.
 */
public class Func3Message<T1, T2, T3> implements IFuncMessage {

    private T1 t1;
    private T2 t2;
    private T3 t3;
    private IFunc3<T1, T2, T3> func3;

    public Func3Message(T1 t1, T2 t2, T3 t3, IFunc3<T1, T2, T3> func2) {
        this.t1 = t1;
        this.t2 = t2;
        this.func3 = func2;
    }

    @Override
    public void apply() {
        func3.call(t1, t2, t3);
    }
}
